import { UserOutlined } from "@ant-design/icons";
import { ItemType } from "antd/lib/menu/hooks/useItems";
import {INavBarItem} from "../interface/INavBarItem";

const menuList:INavBarItem[]= [
    { id: "1001", name: "首页", path: "/home" },
    { id: "1002", name: "测试页面1", path: "/demo" },
    { id: "1003", name: "测试页面2", path: "/hello" },
]


const menuItems:ItemType[]=[
        {key:"/hello",icon:<UserOutlined/>,label:'没有权限',title:"没有权限"},
        {key:"/home",icon:<UserOutlined/>,label:'主页',title:"主页"},
        {key:"/demo-manage",icon:<UserOutlined/>,label:'样例管理',title:"样例管理"},
        {
            key:"/permission-manage",icon:<UserOutlined/>,label:'权限管理',title:"权限管理",
            children:[
                {key:"/permission-manage/user",icon:<UserOutlined/>,label:"用户列表",title:"用户列表"}
            ]
        },
        {
            key:"/user-manage",icon:<UserOutlined/>,label:'用户管理',title:"用户管理",
            children:[
                {key:"/user-manage/user",icon:<UserOutlined/>,label:'用户列表',title:"用户列表"}
            ]
        },
        {key:"/404",icon:<UserOutlined/>,label:'不存在',title:"不存在"},

]
export {menuList,menuItems}
